/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author jipengfei
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.service;

import java.util.List;

import com.eyaomall.wxmall.model.po.ShoppingChart;
import com.eyaomall.wxmall.model.vo.ShoppingChartVO;
import com.lycheeframework.core.cmp.kit.IHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;
/**
 * 购物车service 接口
 * @author jipengfei
 *
 */
public interface ShoppingChartService {

	/**
	 * 查询购物车中的产品
	 * @param memberId
	 * @return
	 */
	public Pages<List<ShoppingChartVO>> page(Integer memberId,IHTTPObject httpObject);
	
	/**
	 * 查询购物车中的产品总数
	 * @param memberId
	 * @return
	 */
	public Integer count(Integer memberId);
	
	/**
	 * 新增或者删除购物车产品信息
	 * @param goodsId
	 * @param num
	 * @return
	 */
	public Integer addOrUpdate(Integer goodsId,Integer num);
	
	/**
	 * 根据ID删除购物车产品数量
	 * @param id
	 * @return
	 */
	public boolean deleteById(String ids);
	
	/**
	 * 根据会员ID和商品ID查询购物车详情
	 * @param id
	 * @return
	 */
	public ShoppingChart query(Integer goodsId,Integer memberId);
}
